GetPage<T>(Guid,Int32) Method


Returns a strongly typed page.
Page identifier.
Language identifier.

Get a typed version of a specified page and language. This is usefull if you know what type of page you are getting. If you don't you should go with the more generic GetPage(Guid pageId, int languageId).

Syntax

'Declaration
 
Public Overloads Shared Function GetPage(Of T As CmsPage)( _
   ByVal pageId As Guid, _
   ByVal languageId As Integer _
) As T
public static T GetPage<T>( 
   Guid pageId,
   int languageId
)
where T: CmsPage

Parameters

pageId
Page identifier.
languageId
Language identifier.

Type Parameters

T
Returns a strongly typed page.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys